package game.ui.script.commands
{
	import engine.core.*;
	import game.ui.script.*;
	
	public class RxUICommand
	{
		protected var m_callback:Function;
		protected var m_commandId:String;
		protected var m_scriptRunner:RxUIScriptRunner;
		protected var m_isValid:Boolean;
		protected var m_running:Boolean;
		protected var m_xmlData:XML;
		
		public function RxUICommand(param1:XML, param2:RxUIScriptRunner)
		{
			this.m_scriptRunner = param2;
			this.m_isValid = true;
			this.m_xmlData = param1;
			this.ReadXML(param1);
		}
		
		protected function ReadXML(param1:XML) : void
		{
			var _loc_3:Boolean = false;
			var _loc_4:XML = null;
			var _loc_2:* = param1.attributes();
			for each (_loc_4 in _loc_2)
			{
				
				_loc_3 = this.LoadAttribute(_loc_4.name(), _loc_4.toString(), param1);
				if (this.m_isValid && !_loc_3)
				{
					this.m_isValid = false;
				}
			}
		}
		
		protected function LoadAttribute(param1:String, param2:String, param3:XML) : Boolean
		{
			if (param1 == "commandid")
			{
				this.m_commandId = param2;
			}
			return true;
		}
	}
}